package com.ltw.modules.test.service;

import com.github.pagehelper.PageInfo;
import com.ltw.modules.common.entity.Result;
import com.ltw.modules.common.entity.SearchBean;
import com.ltw.modules.test.entity.City;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;


public interface CityService {
    Result<City> insertCity(City city);
    Result<City> updateCity(City city);
    Result<Object>  deleteCityByCityId(int cityId);
    City queryCityByCityId(int cityId);
    City queryCityByCityNameAndLocalCityName(String cityName, String localCityName);


    PageInfo<City> getCitiesBySearchBean(SearchBean searchBean);

    List<City> getCitiesByCountryId(int countryId);

}
